<extend name="Public/base"/>
<block name="nav">

    <ul class="nav nav-tabs" >




        <li
        <if condition="ACTION_NAME eq 'room'"> class="active"</if>
        ><a href='{:U("room",array("room_id"=>I("get.room_id"),"ajax"=>I("get.ajax")))}'>房间详情</a></li>
        <li
        <if condition="ACTION_NAME eq 'log'"> class="active"</if>
        ><a href='{:U("log",array("room_id"=>I("get.room_id"),"ajax"=>I("get.ajax")))}'>入住记录</a></li>



        <li class="pull-right nav-tabls-plus">


            <span class="mr10">  {:F("Var_building")[$room["building"]][name]}</span>
            <span class="mr10">  {$room.floor}楼</span>
            <span class="mr10">  {$room.name}</span>
            <span class="mr10"> {:F("Var_room_type")[$room["type"]][name]}</span>
            <span class="mr10"> 可住{$room.maxnum}人</span>
        </li>
    </ul>
    <div>

    </div>

</block>


<block name="body">

<form class="J_ajaxForm" action="{:U('listorders')}" method="post">
    <div class="table_list">
        <table class="table table-striped table-bordered table-hover table-responsive" >
            <thead>
            <tr>
                <th width="150">人员</th>
                <th width="100">电话</th>
                <th>劳动合同</th>
                <th >身份证号</th>
                <th>单位</th>
                <th>接待单位</th>
                <th width="100">入住时间</th>
                <th>离开时间</th>

            </tr>
            </thead>
            <tbody>
            <volist name="list" id="vo">
                <tr

                <switch name="vo.status" >
                    <case value="0"> class="success"</case>
                    <case value="1">class="active"</case>


                </switch>
                >
                    <td>
                        <switch name="vo.type" >
                            <case value="2"><span class="badge badge-danger">临时</span></case>
                            <case value="1"><span class="badge badge-success">长期</span></case>


                        </switch>

                        <switch name="vo.sex" >
                            <case value="男"><span class="badge badge-info">{$vo.sex}</span></case>
                            <case value="女"><span class="badge badge-warning">{$vo.sex}</span></case>


                        </switch>



                        {$vo.name}
                      </td>

                    <td>{$vo.tel}</td>
                    <td>{$vo.ldht}</td>
                    <td>{$vo.sfz}</td>
                    <td>{$vo.danwei}</td>
                    <td>{$vo.jiedaidanwei}</td>

                    <td>{$vo.checkin}</td>
                    <td>{$vo.checkout}</td>




                </tr>



            </volist>
            </tbody>

        </table>
    </div>
      <div class="pagination">{$Page}</div>

  </form>


</block>


<block name="script">

        </block>